Drop code parsing deprecated forms of url
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Sep 2017 21:01:29 +0000 (17:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Sep 2017 21:01:29 +0000 (17:01 -0400)
We no longer allow whitespace between url and (.

gtk/gtkcssparser.c

index 960445ffb868546aecc3bb8a3e190e01c138dd2c..852f9ef0912d24680f05619e408f522587f82ffe 100644 (file)
@@ -835,18 +835,8 @@ _gtk_css_parser_read_url (GtkCssParser *parser)
     {
       if (!_gtk_css_parser_try (parser, "(", TRUE))
         {
-          _gtk_css_parser_skip_whitespace (parser);
-          if (_gtk_css_parser_try (parser, "(", TRUE))
-            {
-              _gtk_css_parser_error_full (parser,
-                                          GTK_CSS_PROVIDER_ERROR_DEPRECATED,
-                                          "Whitespace between 'url' and '(' is deprecated");
-            }
-          else
-            {
-              _gtk_css_parser_error (parser, "Expected '(' after 'url'");
-              return NULL;
-            }
+          _gtk_css_parser_error (parser, "Expected '(' after 'url'");
+          return NULL;
         }
 
       path = _gtk_css_parser_read_string (parser);